package com.flatfish.acvsystem.vo;

import com.flatfish.acvsystem.model.ACVStandardApkEntity;


/**
 * @author luohuida
 * @Time   Mar 7, 2015
 * @Email  luo.archer@gmail.com
 * @Description <b>apk相关信息实体</b>
 */
public class ACVStandardApkVO {
	/**
	 * id
	 */
	private Integer id;
	
	/**
	 * 版本
	 */
	private String versionName;
	
	
	/**
	 * 包名
	 */
	private String packageId;
	
	/**
	 * 哈希值
	 */
	private String hash;
	
	
	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * @return the packageId
	 */
	public String getPackageId() {
		return packageId;
	}

	/**
	 * @param packageId the packageId to set
	 */
	public void setPackageId(String packageId) {
		this.packageId = packageId;
	}

	/**
	 * @return the versionName
	 */
	public String getVersionName() {
		return versionName;
	}

	/**
	 * @param versionName the versionName to set
	 */
	public void setVersionName(String versionName) {
		this.versionName = versionName;
	}

	/**
	 * @return the hash
	 */
	public String getHash() {
		return hash;
	}

	/**
	 * @param hash the hash to set
	 */
	public void setHash(String hash) {
		this.hash = hash;
	}

	/**
	 * @return
	 * @Description <b></b>
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "ACVStandardApkVO [versionName=" + versionName + ", packageId="
				+ packageId + ", hash=" + hash + "]";
	}
	
	
	/**
	 * @author  luohuida
	 * @time    Mar 7, 2015
	 * @param en
	 * @Description <b>视图赋值给实体</b>
	 */
	public void setVOToEntity(ACVStandardApkEntity en) {
		en.setVersion(this.getVersionName());
		en.setPackageId(this.getPackageId());
		en.setHash(this.getHash());
	}
	
	/**
	 * @author  luohuida
	 * @time    Mar 7, 2015
	 * @param en
	 * @Description <b>实体赋值给视图</b>
	 */
	public void setEntityToVO(ACVStandardApkEntity en) {
		this.setId(en.getId());
		this.setVersionName(en.getVersion());
		this.setPackageId(en.getPackageId());
		this.setHash(en.getHash());
	}

}
